package com.zhang.passer.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 必玩景点
 */
@TableName("t_jing")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class JingDo implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer jid;
    private String jname;
    private String position;
    private String detail;

    //开门时间
    @JsonFormat(pattern = "HH:mm",timezone="GMT+8")
    private Date otime;
    //关门时间
    @JsonFormat(pattern = "HH:mm",timezone="GMT+8")
    private Date ctime;

    //所有图片url(非数据库字段)
    @TableField(exist = false)
    private List<ImageDo> images;
}
